package cz.semjobKB.virtuoso.document.impl;

import cz.semjobKB.virtuoso.document.api.IResourceDetail;
import cz.semjobKB.virtuoso.document.api.ITripleDbItem;

/**
 * Used to retrieve information about a triple collected from the database
 */
public class TripleDbItem implements ITripleDbItem {

	private final IResourceDetail subject;
	private final IResourceDetail predicate;
	private final IResourceDetail object;

    /**
     * Constructor
     * @param subject       Subject resource detail
     * @param predicate     Predicate resource detail
     * @param object        Object resource detail
     */
	public TripleDbItem(IResourceDetail subject, IResourceDetail predicate, IResourceDetail object) {
		this.subject = subject;
		this.predicate = predicate;
		this.object = object;
	}

	
	public IResourceDetail getSubject() {		
		return subject;
	}

	
	public IResourceDetail getPredicate() {
		return predicate;
	}

	
	public IResourceDetail getObject() {
		return object;
	}

}
